package com.my.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.my.entity.AskLeave;
import com.my.mapper.AskLeaveMapper;
import com.my.service.AskLeaveService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AskLeaveServiceImpl extends ServiceImpl<AskLeaveMapper, AskLeave> implements AskLeaveService {

    @Override
    public IPage<AskLeave> getList(IPage<AskLeave> page, AskLeave leave) {
        return baseMapper.getList(page, leave);
    }

    @Override
    public List<AskLeave> getListById(Long userId, Integer userType, Long cId) {
        return baseMapper.getListById(userId, userType, cId);
    }

}
